#include "StdAfx.h"
#include "Application.h"
#include "Logger.h"

Application::Application() 
	: Object(NULL)
{
	m_pLogger = CreateLogger();
}

Application::~Application()
{
	DeleteAndSetNULL(m_pLogger);
}

void Application::Initialize()
{
	GetLogger()->Info("application initialize");
}

void Application::run()
{

}

void Application::Finalize()
{
	GetLogger()->Info("application finalize");
}

Logger* Application::CreateLogger()
{
	return new NullLogger;
}
